<?php
#region CODE
    use Gotcha\App\Framework\Controller;
    use Gotcha\App\Extensions\GotchaRoutingExtension;
    use Modules\JasminumReservations\Controllers\DefaultController;

    $framework = new Controller();
    $currentUrl = new GotchaRoutingExtension();
    $reservations = new DefaultController();

#endregion
?>
    <div id="layout-reservations">
        <header>
            <img src="<?php $framework->UrlContent('/Themes/Jasminum.Theme/Styles/Images/headers/header_rezerwacjeonlien.png') ?>">
        </header>
        <p>
            Zarezerwuj stolik w restauracji za pomocą poniższego formularza.
        </p>
        <form method="post" action="<?php $framework->UrlContent('/JasminumReservations/Send') ?>">
            <fieldset>
                <div class="pull-left">
                    <label for="Date">data:</label>
                    <input id="Date" name="Date" type="text" placeholder="RRRR-MM-DD">
                </div>
                <div class="pull-right clearfix">
                    <label for="Time">godzina:</label>
                    <select name="Time" id="Time">
                        <option value="" selected="selected">HH:MM</option>
                        <?php $reservations->getTimes(); ?>
                    </select>
                </div>
                <label for="AdditionalInformations">dodatkowe informacje:</label>
                <textarea id="AdditionalInfo" name="AdditionalInfo"></textarea>
                <button class="pull-right">Wyślij</button>
                <input type="hidden" name="ReturnURL" value="<?php echo $currentUrl ?>">
            </fieldset>
        </form>
    </div>